package modelz;


/**
 * Subclasses contain an ID of a comparable type.
 *
 * @author mkl
 */
public abstract class IdHolder<S extends Comparable< ? super S>, T extends Updateable<T>> extends
		Updateable<T> implements Comparable<IdHolder<S, T>> {

	private S id;

	public S getId() {
		return id;
	}

	void setId(S id) {
		this.id = id;
	}

	public int compareTo(IdHolder<S, T> other) {
		return id.compareTo(other.id);
	}
}
